Skip to content

Filter by tag proposals #503

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 49 commits into from
May 21, 2025
Merged

Conversation

segir187
Copy link
Contributor

@segir187 segir187 commented Apr 8, 2025

Closes #420. Closes #487.

Make it possible to search by algorithm tag proposals.

Includes wording change for the checkbox controlling tag proposals so Transifex will need to be updated if the change is kept.

@segir187 segir187 requested a review from twalen April 9, 2025 13:59
@segir187
Copy link
Contributor Author

I did some benchmarking, these are my results:

The tag through and tag proposal records were randomly distributed.
For each data set I performed one hundred connection attempts using ApacheBench.
All of the testing was done with with one concurrent connection, as the default repo instance of oioioi runs on one thread by iirc.

The tool I used for generating the data will be merged in a different PR.

For data:

Model Problems Users AlgoTags AlgoTagThrough AlgoTagProposals
Amount 2 1 2 3 10

I got average times of:

Before After
134 ms 135 ms

For data:

Model Problems Users AlgoTags AlgoTagThrough AlgoTagProposals
Amount 1000 100 20 2000 12000

I got average times of:

Before After
182 ms 222 ms

For data:

Model Problems Users AlgoTags AlgoTagThrough AlgoTagProposals
Amount 12000 100 200 2000 12000

I got average times of:

Before After
350 ms 374 ms

It seems that the performance decrease I was worried about is negligible.

@segir187 segir187 marked this pull request as ready for review May 20, 2025 17:45
@segir187 segir187 requested a review from MasloMaslane as a code owner May 20, 2025 17:45
Copy link
Contributor

@twalen twalen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good

@segir187 segir187 merged commit 1cde774 into sio2project:master May 21, 2025
1 check passed
@segir187 segir187 deleted the FilterByTagProposals branch May 21, 2025 14:54
wraczuk pushed a commit to wraczuk/oioioi that referenced this pull request May 21, 2025
* Add the option for filtering by algorithm tags to take into account most popular tag proposals when choosing which tasks to show in the results.

* Add the value `include_proposals` to be included in `?q=` for the problemset page controlling whether filtering by algorithm tags takes the most popular tag proposals into account.

* Add `TestTagProposalsSearch` test class for this feature.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bugfixes and changes to task filtering in probset Feature Request: Using proposed algorithm tags for filtering tasks.
2 participants